﻿using UnityEngine;
using System.Collections;

public class PlayerController : MonoBehaviour {

	public GameObject bulletPrefab;
	
	void Update()
	{
		if(Input.GetKey(KeyCode.LeftArrow))
		{
			gameObject.transform.position = new Vector3(gameObject.transform.position.x-0.1f, gameObject.transform.position.y);
		}
		if(Input.GetKey(KeyCode.RightArrow))
		{
			gameObject.transform.position = new Vector3(gameObject.transform.position.x+0.1f, gameObject.transform.position.y);
		}
		if(Input.GetKey(KeyCode.UpArrow))
		{
			gameObject.transform.position = new Vector3(gameObject.transform.position.x, gameObject.transform.position.y+0.1f);
		}
		if(Input.GetKey(KeyCode.DownArrow))
		{
			gameObject.transform.position = new Vector3(gameObject.transform.position.x, gameObject.transform.position.y-0.1f);
		}
	}
}
